import axios from 'axios'

export const getYSFields = () => {
  const fieldsYSUrl =
    'http://192.168.88.177:8090/iserver/services/data-baiyundata-public/rest/data/datasources/baiyundata/datasets/工程成果_验收/fields.json?returnAll=true'
  return axios.get(fieldsYSUrl)
}

export const getDTFields = () => {
  const fieldsDTUrl =
    'http://192.168.88.177:8090/iserver/services/data-baiyundata-public/rest/data/datasources/baiyundata/datasets/工程成果_单体/fields.json?returnAll=true'
  return axios.get(fieldsDTUrl)
}

export const getZPFields = () => {
  const fieldsZPUrl =
    'http://192.168.88.177:8090/iserver/services/data-baiyundata-public/rest/data/datasources/baiyundata/datasets/工程成果_总平/fields.json?returnAll=true'
  return axios.get(fieldsZPUrl)
}
